package com.intelligent.ispc.core.dto;

import com.intelligent.ispc.common.dto.AbstractValueObject;

import java.util.Date;

/**
 * Created by dmrj on 2015/10/27.
 */
public class StationDutSerialNumberDto extends AbstractValueObject {
    private Long id;
    private String stationName;
    private int total = 0;
    private Boolean isFirstPass = true;
    private Boolean isLastPass = false;
    private Date firstDate;
    private Date lastDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public StationDutSerialNumberDto() {
    }

    public StationDutSerialNumberDto(String stationName) {
        this.stationName = stationName;
        this.total = 0;
    }

    public StationDutSerialNumberDto(Long id, String stationName) {
        this.stationName = stationName;
        this.id = id;
        this.total = 0;
    }

    public void addTotal() {
        total ++;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public Boolean getIsFirstPass() {
        return isFirstPass;
    }

    public void setIsFirstPass(Boolean isFirstPass) {
        this.isFirstPass = isFirstPass;
    }

    public Boolean getIsLastPass() {
        return isLastPass;
    }

    public void setIsLastPass(Boolean isLastPass) {
        this.isLastPass = isLastPass;
    }

    public Date getFirstDate() {
        return firstDate;
    }

    public void setFirstDate(Date firstDate) {
        this.firstDate = firstDate;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }
}
